package demo.day10;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/8/1-08-01-16:08
 * @Description：demo.day10
 */
public abstract class Animal {
    private int legs;
    public Animal(int legs){
        this.legs = legs;
    }
    public Animal(){}
    public abstract void walk();
    public abstract void eat();

    public int getLegs() {
        return legs;
    }
    public void setLegs(int legs) {
        this.legs = legs;
    }
}
